package com.hm.pan.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.hm.pan.mapper.OfflineHistoryMapper;
import com.hm.pan.model.OfflineHistory;
import com.hm.pan.service.OfflineHistoryService;

@Service
public class OfflineHistoryServiceImpl implements OfflineHistoryService {

	@Resource
	private OfflineHistoryMapper offlineHistoryMapper;

	@Override
	public boolean insertOfflineHistory(OfflineHistory history) throws Exception {
		return offlineHistoryMapper.insertOfflineHistory(history);
	}

	@Override
	public boolean updateOfflineHistory(OfflineHistory offlineHistory) {
		return offlineHistoryMapper.updateOfflineHistory(offlineHistory);
	}

	@Override
	public List<OfflineHistory> findAllOfflineHistory(OfflineHistory offlineHistory) {
		return offlineHistoryMapper.findAllOfflineHistory(offlineHistory);
	}

}
